package com.roger.springcloudGreenwich.mapper;

import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
@Mapper
public interface CommonMapper {
    @Select("${sqlStr}")
    int selectIntSql(@Param(value = "sqlStr") String sqlStr);

    @Select("${sqlStr}")
    Integer selectIntegerSql(@Param(value = "sqlStr") String sqlStr);


    @Select("${sqlStr}")
    List<String> selectListStrSql(@Param(value = "sqlStr") String sqlStr);


    @Select("${sqlStr}")
    String selectStringSql(@Param(value = "sqlStr") String sqlStr);

    @Select("${sqlStr}")
    List<Map> selectListMapSql(@Param(value = "sqlStr") String sqlStr);

}
